﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;
using Data.Core;

namespace Data.XXB
{
    /// <summary>
    /// XXB数据库基类
    /// </summary>
    public class XXB_DataBase : Data.Core.DataBase
    {
        private readonly static string _conn;
        static XXB_DataBase()
        {
            if (ConfigurationManager.ConnectionStrings["XXB"] == null)
                throw new Exception("请设置XXB配置字符");
            else
                _conn = ConfigurationManager.ConnectionStrings["XXB"].ToString();
        }
        public XXB_DataBase()
            : base(DbFactory.Intance(_conn, 2, 1))
        { }

    }
}